Skip to content

Conversation

@gerteck
Copy link
Member

@gerteck gerteck commented Jan 18, 2026

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • Feature addition or enhancement
  • Code maintenance
  • DevOps
  • Improve developer experience
  • Others, please explain:

Overview of changes:

Adds support for plugins to configure specific tags as "custom elements" to be ignored by the Vue compiler. Enables Vue compiler to recognize custom HTML elements

Currently, if a plugin introduces Custom Elements (Web Components), Vue attempts to resolve them as Vue components during SSR, leading to warnings or errors. This PR allows plugins to opt-in to the isCustomElement compiler option via tagConfig.

  • packages/core: Updated TagConfigs type in Plugin.ts to include the customComponent property.
  • packages/core: Updated PageVueServerRenderer.ts to collect tags with customComponent: true from the PluginManager and pass them to the Vue compilerOptions.isCustomElement check.
  • docs: Updated writingPlugins.md to document the new configuration option.
  • Update testcases
  • Update plugin type

Anything you'd like to highlight/discuss:

Testing instructions:

  • Verified that tags marked with customComponent: true are ignored by the Vue component resolver and preserved as custom elements in the output.

Proposed commit message: (wrap lines at 72 characters)

Add isCustomElement flag for plugin tag config

Adds support for plugins to configure specific tags as
custom elements to be ignored by the Vue compiler.


Checklist: ☑️

  • Updated the documentation for feature additions and enhancements
  • Added tests for bug fixes or features
  • Linked all related issues
  • No unrelated changes

Reviewer checklist:

Indicate the SEMVER impact of the PR:

  • Major (when you make incompatible API changes)
  • Minor (when you add functionality in a backward compatible manner)
  • Patch (when you make backward compatible bug fixes)

At the end of the review, please label the PR with the appropriate label: r.Major, r.Minor, r.Patch.

Breaking change release note preparation (if applicable):

  • To be included in the release note for any feature that is made obsolete/breaking

Give a brief explanation note about:

  • what was the old feature that was made obsolete
  • any replacement feature (if any), and
  • how the author should modify his website to migrate from the old feature to the replacement feature (if possible).

Enables Vue compiler to recognize custom HTML elements

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

❌ Patch coverage is 64.70588% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.76%. Comparing base (62d0970) to head (027ec77).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
packages/core/src/html/linkProcessor.ts 14.28% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2786      +/-   ##
==========================================
+ Coverage   71.74%   71.76%   +0.01%     
==========================================
  Files         134      134              
  Lines        7304     7316      +12     
  Branches     1612     1590      -22     
==========================================
+ Hits         5240     5250      +10     
- Misses       2018     2020       +2     
  Partials       46       46              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@gerteck gerteck changed the title Add customComponent flag for plugin tag configurations Add isCustomElement flag for plugin tag configurations Jan 25, 2026

This comment was marked as outdated.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gerteck gerteck merged commit 0f70952 into MarkBind:master Jan 25, 2026
18 of 19 checks passed
@gerteck gerteck deleted the feat/AddPluginTagIgnore branch January 25, 2026 19:02
@github-actions github-actions bot added the r.Minor Version resolver: increment by 0.1.0 label Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r.Minor Version resolver: increment by 0.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant